package com.example.eshop_ssm.entity;


import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class TbBookInfo implements Serializable {

  private Integer bookId;                   //书籍id
  private String bookName;               //书籍名称
  private String bookLogoSmall;          //书籍logo图（小）
  private String bookLogoBig;            //书籍logo图（大）
  private Long bookPrice;              //出售价
  private Long bookPriceOld;           //原价
  private String bookAuthor;             //作者
  private String bookDescription;        //商品详情描述
  private String bookPress;              //出版社
 // private long typeId;                   //分类ID
  private TbTypeInfo tbType;                //分类ID 外键 1对1
  private Date bookDate;                 //添加书籍时间
  private Integer storeCount;               //库存
  private Integer status;                   //1上架  0下架
  private Integer isNew;                    //0非新品     其他任意正整数代表新品
  private Integer isHot;                    //0非热销     其他任意正整数代表热销
  private Integer isGarbage;                //0代表不是垃圾    1代表垃圾
  private String searchKeywords;         //用于全局搜索的关键字
  private List<TbBookPicInfo> picName;       //每本书对应的图片  1对多

  public TbBookInfo(){

  }

    public TbBookInfo(Integer bookId, String bookName, String bookLogoSmall, String bookLogoBig, Long bookPrice, Long bookPriceOld, String bookAuthor, String bookDescription, String bookPress, TbTypeInfo tbType, Date bookDate, Integer storeCount, Integer status, Integer isNew, Integer isHot, Integer isGarbage, String searchKeywords, List<TbBookPicInfo> picName) {
        this.bookId = bookId;
        this.bookName = bookName;
        this.bookLogoSmall = bookLogoSmall;
        this.bookLogoBig = bookLogoBig;
        this.bookPrice = bookPrice;
        this.bookPriceOld = bookPriceOld;
        this.bookAuthor = bookAuthor;
        this.bookDescription = bookDescription;
        this.bookPress = bookPress;
        this.tbType = tbType;
        this.bookDate = bookDate;
        this.storeCount = storeCount;
        this.status = status;
        this.isNew = isNew;
        this.isHot = isHot;
        this.isGarbage = isGarbage;
        this.searchKeywords = searchKeywords;
        this.picName = picName;
    }

    public Long getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(Long bookPrice) {
        this.bookPrice = bookPrice;
    }

    public Long getBookPriceOld() {
        return bookPriceOld;
    }

    public void setBookPriceOld(Long bookPriceOld) {
        this.bookPriceOld = bookPriceOld;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getBookLogoSmall() {
        return bookLogoSmall;
    }

    public void setBookLogoSmall(String bookLogoSmall) {
        this.bookLogoSmall = bookLogoSmall;
    }

    public String getBookLogoBig() {
        return bookLogoBig;
    }

    public void setBookLogoBig(String bookLogoBig) {
        this.bookLogoBig = bookLogoBig;
    }


    public String getBookAuthor() {
        return bookAuthor;
    }

    public void setBookAuthor(String bookAuthor) {
        this.bookAuthor = bookAuthor;
    }

    public String getBookDescription() {
        return bookDescription;
    }

    public void setBookDescription(String bookDescription) {
        this.bookDescription = bookDescription;
    }

    public String getBookPress() {
        return bookPress;
    }

    public void setBookPress(String bookPress) {
        this.bookPress = bookPress;
    }

    public TbTypeInfo getTbType() {
        return tbType;
    }

    public void setTbType(TbTypeInfo tbType) {
        this.tbType = tbType;
    }

    public Date getBookDate() {
        return bookDate;
    }

    public void setBookDate(Date bookDate) {
        this.bookDate = bookDate;
    }

    public Integer getStoreCount() {
        return storeCount;
    }

    public void setStoreCount(Integer storeCount) {
        this.storeCount = storeCount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsNew() {
        return isNew;
    }

    public void setIsNew(Integer isNew) {
        this.isNew = isNew;
    }

    public Integer getIsHot() {
        return isHot;
    }

    public void setIsHot(Integer isHot) {
        this.isHot = isHot;
    }

    public Integer getIsGarbage() {
        return isGarbage;
    }

    public void setIsGarbage(Integer isGarbage) {
        this.isGarbage = isGarbage;
    }

    public String getSearchKeywords() {
        return searchKeywords;
    }

    public void setSearchKeywords(String searchKeywords) {
        this.searchKeywords = searchKeywords;
    }

    public List<TbBookPicInfo> getPicName() {
        return picName;
    }

    public void setPicName(List<TbBookPicInfo> picName) {
        this.picName = picName;
    }

    @Override
    public String toString() {
        return "TbBook{" +
                "bookId=" + bookId +
                ", bookName='" + bookName + '\'' +
                ", bookLogoSmall='" + bookLogoSmall + '\'' +
                ", bookLogoBig='" + bookLogoBig + '\'' +
                ", bookPrice=" + bookPrice +
                ", bookPriceOld=" + bookPriceOld +
                ", bookAuthor='" + bookAuthor + '\'' +
                ", bookDescription='" + bookDescription + '\'' +
                ", bookPress='" + bookPress + '\'' +
                ", tbType=" + tbType +
                ", bookDate=" + bookDate +
                ", storeCount=" + storeCount +
                ", status=" + status +
                ", isNew=" + isNew +
                ", isHot=" + isHot +
                ", isGarbage=" + isGarbage +
                ", searchKeywords='" + searchKeywords + '\'' +
                ", picName=" + picName +
                '}';
    }


}
